home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
Programming
/
AsyncIO
/
src
/
AsyncLib.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-27
|
584b
|
40 lines
#include <proto/exec.h>
#include <proto/asyncio.h>
void __regargs __autoopenfail( char * );
struct Library *AsyncIOBase;
static void *libbase;
extern long __oslibversion;
extern long __asiolibversion;
LONG
_STI_110_OpenAsyncIO( VOID )
{
AsyncIOBase = libbase = OpenLibrary( "asyncio.library", __asiolibversion );
if( AsyncIOBase == NULL )
{
__oslibversion = __asiolibversion;
__autoopenfail( "asyncio.library" );
return( 1 );
}
return( 0 );
}
VOID
_STD_110_CloseAsyncIO( VOID )
{
if( libbase )
{
CloseLibrary( libbase );
libbase = AsyncIOBase = NULL;
}
}